<h1>Listing groups</h1>

<table>
  <tr>
    <th>Code</th>
    <th>Evaluation type</th>
    <th>Subject</th>
    <th>Academic term</th>
    <th>Group type</th>
    <th>Capacity</th>
  </tr>

<% @groups.each do |group| %>
  <tr>
    <td><%=h group.code %></td>
    <td><%=h group.evaluation_type %></td>
    <td><%=h group.subject %></td>
    <td><%=h group.academic_term %></td>
    <td><%=h group.group_type %></td>
    <td><%=h group.capacity %></td>
    <td><%= link_to 'Show', group %></td>
    <td><%= link_to 'Edit', edit_group_path(group) %></td>
    <td><%= link_to 'Destroy', group, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New group', new_group_path %>